

# list =["张飞","刘备","曹操","关羽"]
# a= 0
# for i in list:
#     print("列表第%d个的成员是:%s" %(a,i))
#     a+=1

# 如果数据类型不一样
list =["张飞",3,1.45,"关羽"]
a= 0
for i in list:
    print("列表第%d个的成员是:%s" %(a,str(i)))
    a+=1

# 如果数据类型不一样
list2 = [56,"22","24","89",100]
sum =0
for n in list2:
    sum += int(n)
print(sum)